package com.swu.oa.dao;

import org.hibernate.SessionFactory;

import com.swu.oa.entity.Test;


public class TestDao {

	
	private SessionFactory sf;
	
	public void setSf(SessionFactory sf) {
		this.sf = sf;
	}

	public void login(){
		Test t = new Test();
		t.setName("test");
		this.sf.getCurrentSession().save(t);
	}
}

